import core.demo.BubbleSort;
import core.demo.ChooseSort;
import core.demo.QuickSort;
import javafx.util.Pair;

import java.util.Vector;

public class test{
    public static void main(String[] args) {

        //选择排序法展示
        Integer[] arr1 = {5, 2, 4, 3, 1};

        ChooseSort<Integer> chooseSort = new ChooseSort<>(arr1);

        System.out.println("选择排序结果为:");
        for (Integer i : arr1)
            System.out.println(i);



        //冒泡排序
        Integer[] arr2 = {5, 2, 4, 3, 1};

        BubbleSort<Integer> bubbleSort = new BubbleSort<>(arr2);

        System.out.println("冒泡排序结果为:");
        for (Integer i : arr2)
            System.out.println(i);



        //快速排序
        Integer[] arr3 = {5, 2, 4, 3, 1};
        QuickSort<Integer> quickSort = new QuickSort<>(arr3);

        System.out.println("快速排序结果为:");
        for (Integer i : arr3)
            System.out.println(i);
    }






}
